<ul class="hot_list">
  <% for pcolor in hot_list %>
    <li>
      <dl class="img_container">
        <dt>
          <a href="/products/<%=@product.id%>/pcolors/<%=pcolor.id%>">
            <%= image_tag url_for_file_column(pcolor,"image_url","medium"),:title=>"点击放大",:class=>'hot_list_img' if pcolor.image_url %>
          </a>
        </dt>
      </dl>
      <dl class="rank_button_container">
        <dt class="detail_toolbar">
          <%=pcolor.name%>
        </dt>
        <dt class="detail_toolbar">
          <%if editor?%>
            <%= link_to "修改颜色",[:edit,@product,pcolor],:title=>'修改',:class=>'action_edit' %>
            <%= link_to "删除颜色",[@product,pcolor], :confirm => '确定删除?', :method => :delete,:title=>'删除',:class=>'action_delete' %>
          <%end%>
        </dt>
      </dl>
    </li>
  <% end %>
</ul>